const anyNull =  (...vars) => {
    for (let v of vars) {
		if (!v) return true;
	}
}

// 解析scene
// 小程序测试输入格式
// uidE1AbidE1AsEauto
// uidE1 
const parseSceneToJson = (scene = "") => {
	let jsonParams = {}
	
	if (scene == '') return jsonParams
	
	let params = scene.split('&')
	
	if (params.length <= 0) return jsonParams
	// a = b
	for (let p of params) {
		let value = p.split('=')
		jsonParams[value[0]] = value[1]
	}
	
	return jsonParams;
}


/**
 * 判断为空或者为null
 */
const isNull = (obj) => {
	return o == null
}

const buildBgUrl = (bg) => {
	return 'background-image: url("' + bg + '")'
}

export {
	anyNull, buildBgUrl, isNull, parseSceneToJson
}